package com.ys.utils.pay;

import org.springframework.beans.factory.annotation.Value;

import javax.annotation.PostConstruct;

//@Component
public class PayConfig {
    @Value("${pay.merchant.id}")
    private String merchantId;
    public static String _merchantId;
    @Value("${pay.server.public.key.path}")
    private String publicKey;
    @Value("${pay.client.private.key.path}")
    private String clientKey;
    @Value("${pay.client.private.key.password}")
    private String clientPass;
    @Value("${pay.notify.url}")
    private String notifyUrl;
    public static String _notifyUrl;

    @PostConstruct
    void init(){
        _merchantId = this.merchantId;
        _notifyUrl = this.notifyUrl;
    }
}
